<?php
/* SVN FILE: $Id: default.ctp 7945 2008-12-19 02:16:01Z gwoo $ */
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @version       $Revision: 7945 $
 * @modifiedby    $LastChangedBy: gwoo $
 * @lastmodified  $Date: 2008-12-18 18:16:01 -0800 (Thu, 18 Dec 2008) $
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $html->charset(); ?>
	<title>
		<?php __('uKuda: '); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $html->meta('icon');
		echo $html->css('ukuda');
		echo $javascript->link('prototype');
   		echo $javascript->link('scriptaculous');
		echo $javascript->link('scriptaculous.js?load=effect');
		echo $javascript->link('tooltip');
   		echo $javascript->link('lytebox');
   		echo $html->css('lytebox');
		
		echo $scripts_for_layout;
	?>
</head>
<body>
	<div id="wrap">
			<div id="header">
				<div id="topbar">
					<div id="searchbar">
						<form action="#">
							<div>
								<?php echo $complete->siteAutocomplete(); ?>
							</div>
						</form>
					</div>
					<?php $session->flash(); ?>
				</div>
				<div id="subnav">
						<?php echo $html->link(__('Home', true), '/');?> |
					<?php if ($me): ?>
						<!-- links when user is logged in -->
						<?php echo $html->link(__('My Profile', true), array('controller' => 'profiles', 'action'=>'view'));?> |
						<?php echo $html->link(__('Edit Profile', true), array('controller' => 'profiles', 'action'=>'edit'));?> |
						<?php echo $html->link(__('Change Password', true), array('controller' => 'users', 'action' => 'change_password'));?> |
						<?php echo $html->link(__('Logout', true), array('controller' => 'users', 'action'=>'logout'));?>
					<?php else: ?>
						<!-- links when user is not logged in -->
						<?php echo $html->link(__('Login', true), array('controller' => 'users', 'action'=>'login'));?> |
						<?php echo $html->link(__('Register', true), array('controller' => 'users', 'action'=>'add'));?>
					<?php endif; ?>
				</div>
			</div>
			<div id="content">
				<?php echo $content_for_layout; ?>
			</div>
			<div id="footer">
				<p>uKuda, 2009</p>
                <p>Please Come Back Soon!</p>
				<p id="credit"><a href="http://ramblingsoul.com">CSS Template</a> by RamblingSoul | Sponsored By <a href="http://www.kaysbargains.com/">Bargain Finder</a></p>
			</div>
	</div>
	<script type="text/javascript">
	try{
		setTimeout(Effect.Pulsate('flashMessage', { pulses: 7, duration: 3.5 }),500);
	} catch(e) { }
	</script>
	<?php echo $cakeDebug; ?>
</body>
</html>